using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
	/// <summary>
	/// 企业重大关系人人行征信
	/// </summary>
	[Table("JIUSHI_CUSTOMERMAJORCREDIT")]
	public class CustomermajorcreditEntity
	{
		/// <summary>
		/// 主键ID
		/// </summary>
		[Key]
		[Column("F_ID")]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		public int Id {get;set;}

		/// <summary>
		/// 客户主键
		/// </summary>
		[Column("F_CUSTOMERID")]
		public int CustomerId {get;set;}

        /// <summary>
        /// 业务ID
        /// </summary>
        [Column("F_BUSINESSID")]
        [MaxLength(255)]
        public string BusinessId { get; set; }

        /// <summary>
        /// 重大关系人ID
        /// </summary>
        [Column("F_MAJORRELATIONPERSON")]
		[MaxLength(255)]
		public string MajorRelationPerson {get;set;}

		/// <summary>
		/// 贷款金融机构数
		/// </summary>
		[Column("F_LOANFINANCIALINSTITUTIONSCOUNT")]
		public int? LoanFinancialInstitutionsCount {get;set;}

		/// <summary>
		/// 信用卡金融机构数
		/// </summary>
		[Column("F_CREDITCARDFINANCIALINSTITUTIONSCOUNT")]
		public int? CreditCardFinancialInstitutionsCount {get;set;}

		/// <summary>
		/// 信用卡总额
		/// </summary>
		[Column("F_CREDITCARDTOTAL")]
		public decimal? CreditCardTotal {get;set;}

        /// <summary>
        /// 信用卡使用额
        /// </summary>
        [Column("F_CREDITCARDUSAGEAMOUNT")]
        public decimal? CreditCardUsageAmount { get; set; }

        /// <summary>
        /// 半年内贷款审批查询次数
        /// </summary>
        [Column("F_LOANINQUIRYCOUNTINHALFYEAR")]
		public int? LoanInquiryCountInHalfYear {get;set;}

		/// <summary>
		/// 半年内信用卡审批查询次数
		/// </summary>
		[Column("F_CREDITCARDINQUIRYCOUNTINHALFYEAR")]
		public int? CreditCardInquiryCountInHalfYear {get;set;}

		/// <summary>
		/// 两年内逾期次数
		/// </summary>
		[Column("F_OVERDUECOUNTINTWOYEARS")]
		public int? OverdueCountInTwoYears {get;set;}

		/// <summary>
		/// 五年内逾期次数
		/// </summary>
		[Column("F_OVERDUECOUNTINFIVEYEARS")]
		public int? OverdueCountInFiveYears {get;set;}

		/// <summary>
		/// M2及以上的信息
		/// </summary>
		[Column("F_M2ANDABOVEINFORMATION")]
		[MaxLength(255)]
		public string M2AndAboveInformation {get;set;}
        /// <summary>
        /// 附件
        /// </summary>
        [Column("F_ATTACHMENT")]
        public string Attachment { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Column("F_SORTCODE")]
		public int? SortCode {get;set;}

		/// <summary>
		/// 有效标志
		/// </summary>
		[Column("F_ENABLEDMARK")]
		public int? EnabledMark {get;set;}

		/// <summary>
		/// 创建时间
		/// </summary>
		[Column("F_CREATORTIME")]
		public DateTime? CreatorTime {get;set;}

		/// <summary>
		/// 创建用户
		/// </summary>
		[Column("F_CREATORUSERID")]
		[MaxLength(50)]
		public string CreatorUserId {get;set;}


        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSER")]
        [MaxLength(50)]
        public string CreatorUser { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
		public DateTime? LastModifyTime {get;set;}

		/// <summary>
		/// 修改用户
		/// </summary>
		[Column("F_LASTMODIFYUSERID")]
		[MaxLength(50)]
		public string LastModifyUserId {get;set;}

		/// <summary>
		/// 删除标志
		/// </summary>
		[Column("F_DELETEMARK")]
		public int? DeleteMark {get;set;}

		/// <summary>
		/// 删除时间
		/// </summary>
		[Column("F_DELETETIME")]
		public DateTime? DeleteTime {get;set;}

		/// <summary>
		/// 删除用户
		/// </summary>
		[Column("F_DELETEUSERID")]
		[MaxLength(50)]
		public string DeleteUserId {get;set;}


	}
}
